package com.tuniu.agents.tools.train.enums;

import com.tuniu.agents.util.I18nUtil;

/**
 * seat type
 */
public enum TrainSeatTypeEnum {
    SWZ("商务座", "swzNum", "swzPrice", "swzType","train.template.swz"),
    TDZ("特等座", "tdzNum", "tdzPrice", "tdzType","train.template.tdz"),
    YDZ("一等座", "ydzNum", "ydzPrice", "ydzType","train.template.ydz"),
    EDZ("二等座", "edzNum", "edzPrice", "edzType","train.template.edz"),
    GJRW("高级软卧", "gjrwNum", "gjrwPrice", "gjrwType","train.template.gjrw"),
    RW("软卧", "rwNum", "rwPrice", "rwType","train.template.rw"),
    DW("动卧", "dwNum", "dwPrice", "dwType","train.template.dw"),
    YW("硬卧", "ywNum", "ywPrice", "ywType","train.template.yw"),
    RZ("软座", "rzNum", "rzPrice", "rzType","train.template.rz"),
    YZ("硬座", "yzNum", "yzPrice", "yzType","train.template.yz"),
    WZ("无座", "wzNum", "wzPrice", "wzType","train.template.wz"),
    YDW("一等卧", "ydwNum", "ydwPrice", "ydwType","train.template.ydw"),
    EDW("二等卧", "edwNum", "edwPrice", "edwType","train.template.edw");

    private final String name;
    private final String numField;
    private final String priceField;
    private final String typeField;
    private final String templateKey;

    TrainSeatTypeEnum(String name, String numField, String priceField, String typeField,String templateKey) {
        this.name = name;
        this.numField = numField;
        this.priceField = priceField;
        this.typeField = typeField;
        this.templateKey = templateKey;
    }

    public String getName(String conversationId) {
        return I18nUtil.getMessage(conversationId,this.templateKey);
    }

    public String getNumField() {
        return numField;
    }

    public String getPriceField() {
        return priceField;
    }

    public String getTypeField() {
        return typeField;
    }

    public String getTemplateKey() {
        return templateKey;
    }
}
